package jwm.data;

import java.net.URL;

public class RatedURL {

   private URL url;
   
   public RatedURL(URL url) {
      this.url = url;
   }

   public URL getUrl() {
      return url;
   }

   @Override
   public String toString() {
      return url.toString();
   }

   @Override
   public boolean equals(Object obj) {
      if (this == obj)
         return true;
      if (obj == null)
         return false;
      if (!(obj instanceof RatedURL))
         return false;
      RatedURL other = (RatedURL) obj;
      if (url == null) {
         if (other.url != null)
            return false;
      } else if (!url.equals(other.url))
         return false;
      return true;
   }
   
   

}
